import request from '@/utils/request'

// 查询程序文件管理列表
export function listNcProgramFileManagement(query) {
  return request({
    url: '/business/NcProgramFileManagement/list',
    method: 'get',
    params: query
  })
}

// 查询程序文件管理详细
export function getNcProgramFileManagement(id) {
  return request({
    url: '/business/NcProgramFileManagement/' + id,
    method: 'get'
  })
}

// 新增程序文件管理
export function addNcProgramFileManagement(data) {
  return request({
    url: '/business/NcProgramFileManagement',
    method: 'post',
    data: data
  })
}

// 修改程序文件管理
export function updateNcProgramFileManagement(data) {
  return request({
    url: '/business/NcProgramFileManagement',
    method: 'put',
    data: data
  })
}

// 删除程序文件管理
export function delNcProgramFileManagement(id) {
  return request({
    url: '/business/NcProgramFileManagement/' + id,
    method: 'delete'
  })
}
